import { Chessman } from "./Chessman";

class ChessCar extends Chessman {
  constructor(chessName, camp, x, y, key, chessId) {
    super(chessName, camp, x, y, key, chessId);
  }

  predictionMove(chessList, path?) {
    const res = [];
    const temp = [];
    super.translate(temp, chessList, true);
    res.push(...super.filterChessman(temp, [...chessList]));
    return { data: this, path: res };
  }
}
export default ChessCar